<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
    <div class="container-fluid">
        <a class="btn btn-outline-light" href="#">Social Network</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo02" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarTogglerDemo02">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link {% if section == 'dashboard' %} active {% endif %}" aria-current="page" href="#">Home</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link {% if section == 'images' %} active {% endif %}" href="#">Images</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link {% if section == 'people' %} active {% endif %}" href="#">People</a>
                </li>
            </ul>
            {% if request.user.is_authenticated %}
            <a style="margin-right: 5px;" class="btn btn-outline-light">{{ user.username }}</a>
            <a href="{% url 'logout' %}" class="btn btn-outline-light">Logout</a>
            {% else %}
            <a style="margin-right: 5px;" href="{% url 'login' %}" class="btn btn-outline-light">Login</a>
            <a href="{% url 'login' %}" class="btn btn-outline-light">Registration</a>
            {% endif %}
        </div>
    </div>
</nav>
